package com.meichis.yndms.hybrid;
 

 
import android.content.Intent;

import com.meichis.mcsappframework.qrcode.QRCodeActivity;

public class BarcodeScannerPlugin extends MCSPlugin {
	public BarcodeScannerPlugin(HybridInterface hybrid, MCWebView webView) {
		super(hybrid, webView);
	}

	@Override
	public boolean execute(CallbackContext callbackContext) {
		hybrid.setActivityResultCallback(callbackContext);
		Intent iscan = new Intent(hybrid.getActivity(), QRCodeActivity.class);
		hybrid.getActivity().startActivityForResult(iscan, JavaScriptInterface.CONTEXT_RETURNSCANCODE);
		return false;
	}

}
